package com.itheima.service.store;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.store.Company;

import java.util.List;

public interface CompanyService {

    PageInfo<Company> queryPage(Integer pageNum, Integer pageSize)throws Exception;

    /**查询所有*/
    List<Company> findAll()throws Exception;

    /**根据ID查询*/
    Company findById(String id)throws Exception;

    /**保存*/
    void save(Company company)throws Exception;

    /**根据多个ID进行删除*/
    void deleteById(String... ids)throws Exception;

    /**更新*/
    void update(Company company)throws Exception;
}
